﻿
@{
    ViewBag.Title = "ProductInfo";
    Layout = "~/Views/Shared/_Head.cshtml";
}
@model Gtkj.CMS.Model.ProductInfo
           @{
               Gtkj.CMS.BLL.ProductTypeService ProductTypeService= new Gtkj.CMS.BLL.ProductTypeService();
               Gtkj.CMS.BLL.SystemParameterService SystemParameterService = new Gtkj.CMS.BLL.SystemParameterService();
               

               string paremName = ProductTypeService.LoadEntities(x => x.TypeID == Model.ParentID).FirstOrDefault().Name;
               string ChildName = "";
               if (Model.ChildID>0)
               {
                   ChildName= ProductTypeService.LoadEntities(x => x.TypeID == Model.ChildID).FirstOrDefault().Name;
               }
               string SystemQQ = SystemParameterService.LoadEntities(x=>x.ID==4).FirstOrDefault().SystemValue;
               
               
               
           }
<div class="container">
    <!---->
    <div class="page"><a href="/Home/index">首页</a><span>&gt;</span><a href="/Product/ProductSearch?TypeName=@(paremName)&TypeID=@(Model.ParentID)">@(paremName)</a><span>&gt;</span><a href="/Product/ProductSearch?TypeName=@(paremName)&TypeID=@(Model.ParentID)&ChildTypeName=@(ChildName)&&ChildID=@(Model.ChildID)">@(ChildName)</a></div>
    <div class="clearfix">
        <div class="fl deta">
            <div class="clearfix detaT">
                <div class="sp-wrap">
                    @{
                        var image = Model.ProductImages.ToList();
                        foreach (var item in image)
                        {
                            <a href="@item.ImageURL"><img src="@item.ImageURL" alt=""></a>
                        }
                    }
                </div>
                <div class="fl detaT_l">
                    <h1>@(Model.Title)</h1>
                    <ul>
                        <li>寄卖价格：<span class="color1"><b> @(Model.Money == 0 ? "询价" : "￥" + Model.Money.ToString())</b></span></li>
                        <li>类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：<span class="color1">@(ChildName)</span></li>
                        <li>规&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格：<span>@(Model.Specifications)</span></li>
                        <li>收录时间：<span>@(Model.CollectionTime.ToString("yyyy-MM-dd"))</span></li>
                        <li>浏览人次：<span class="color1">@(Model.BrowseCount)次</span></li>
                        <li>藏&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主：<span>@(Model.CollectionName)</span></li>
                        <li>所在地区：<span>@(Model.Address)</span></li>
                        <li>联系藏主：<a class="color1"  href="tencent://message/?uin=@(Model.CollectionQQ)&Menu=yes">在线咨询</a></li>
                        <li>交易方式：<span>@(((Gtkj.CMS.Model.Enums.TradingTypeEnum)Model.TradingType).ToString() == "全部" ? "线下交易/交换" : ((Gtkj.CMS.Model.Enums.TradingTypeEnum)Model.TradingType).ToString())</span></li>
                    </ul>
                    <a class="deat_a" href="tencent://message/?uin=@(SystemQQ)&Menu=yes">立即咨询</a>
                </div>
            </div>
            <div class="clearfix head_tit2">
                <h2>商品详情</h2>
            </div>
            <div>
                @(Html.Raw(Model.Contenst))
                @*<ul class="deta_f">
                    <li>产品参数：</li>
                    <li>品牌: 铜欣祥</li>
                    <li>外观造型: 其他</li>
                    <li>工艺: 半手工</li>
                    <li>颜色分类: X 3125爵杯材质</li>
                </ul>
                <div class="deat_p">
                    <img src="/Content/PC/images/q1.jpg"> <img src="/Content/PC/images/q2.jpg"> <img src="/Content/PC/images/q3.jpg">
                    <p>我有类似的藏品，我想鉴定、出手、展销，可以联系我们在线客服人员，直接与我们在线客服人员进行交流、对话。</p>
                </div>*@
            </div>
        </div>
        <div class="fr deta_r">
            <fieldset class="deat_le">
                <legend>看了又看</legend>
            </fieldset>
            <ul class="deat_u">
                @{
                    if (ViewBag.ExtensionList != null)
                    {
                        foreach (Gtkj.CMS.Model.ProductInfo item in ViewBag.ExtensionList)
                        {
                            <li><a href="/Product/ProductInfo?ID=@item.ProductID"><img src="@(item.Image)"><span>@(item.Money == 0 ? "询价" : "￥" + item.Money)</span></a></li>
                        }

                    }
                }
            </ul>
        </div>
    </div>
</div>
<script type="text/javascript" src="/Content/PC/js/smoothproducts.min.js"></script>
<script type="text/javascript">
/* wait for images to load */
$(window).load(function() {
	$('.sp-wrap').smoothproducts();
});
</script>
